package tech.eyao.hs60x.common;

/**
 * CommonConstants.java
 * 
 * @desption 功能常用变量
 */
public interface CommonConstants {
    static final int        EXPIRATION_DAY            = 60;

    static final String     CHARACTER                 = "utf-8";

    static final String     LOGIN_METHOD              = "/user/login.do";

    static final String     LOGIN_METHOD2             = "/user/fastLogin.do";

    static final String     REGISTER_METHOD           = "/user/register.do";

    static final String     IMAGE_FORMAT              = ".jpg";

    static final String     REQUEST_HEADER_TOKE_NNAME = "_token";

    static final String     JWT_TYPE_NAME             = "typ";

    static final String     JWT_TYPE_VALUE            = "JWT";

    static final String     JWT_ALG_NAME              = "alg";

    static final String     JWT_ALG_VALUE             = "HS256";

    static final String     TOKEN_USERID              = "user_id";

    static final String     TOKEN_BODY                = "body";

    static final String     TOKEN_DEVICEID            = "device_id";

    static final String     APPKEY                    = "2c2c11434e1350c783acdc2b";

    static final String     MASTER_SECRET             = "86982a464844cd8db9bf6c5b";

    static final String     WATCH_APPKEY              = "c8fccf62639fc9db317c042e";

    static final String     WATCH_MASTER_SECRET       = "a013f1fe9a3eead31c154e56";

    static final int        ZERO_SETP                 = 0;

    static final String     IMG_URI                   = "//home//admin//hs60x//images";

    static final int        FILESIZE                  = 100;
    static final String     SLASH                     = "//";

    static final String     DEFAULTPASSOWRD           = "123456";

    static final int        PAGENO                    = 1;

    static final int        PAGESIZE                  = 20;

    static final double     ZERO                      = 0;

    static final String     ADMIN                     = "admin";

    static final String     LOGIN_METHOD3             = "/user/otpLogin.do";

    // ALISMS
    static final String     ALI_SMS_PRODUCT           = "Dysmsapi";
    static final String     ALI_SMS_SREVER_DOMAIN     = "dysmsapi.aliyuncs.com";
    static final String     ALI_SMS_ENDPOINT_NAME     = "cn-hangzhou";
    static final String     ALI_SMS_SIGNNAME          = "海小宝";
    static final String     ALI_SMS_ACCESSKEY_ID      = "LTAIXAI0JlUFcFaX";
    static final String     ALI_SMS_ACCESSKEY_SECRET  = "tJcl31eaeGW6r0gnYZoMYuovH4Z6vV";
    // SMS CODE
    static final int        VISIT_LIMIT_MINUTE_5      = 300;                                                // 5分钟
    static final int        VISIT_LIMIT_MINUTE_1      = 60;                                                 // 1分钟
    static final String     SMS_COUNT                 = "sms_count_";                                       // 同一手机号码
    // 一分钟内发送短信次数

    public static final int HANDBIND                  = 2;

    // weather domain
    static final String     WEATHER_DOMAIN            = "http://www.sojson.com/open/api/weather/json.shtml";

    static final long       SEND_SMS_TIME             = 60;

    static final String     SUCCESS                   = "SUCCESS";

    static final String     FAIL                      = "FAIL";

    static final String     ECRYPT_TYPE               = "AES";

    static final String     RONG_KEY                  = "kj7swf8okiw12";

    static final String     RONG_APPSECRET            = "d10p0WzQonDhrO";

    static final int        SETP_QUERY_DAY            = -7;

    static final String     APPID                     = "_appid";
    static final String     APP_VERSION_CODE          = "_vcc";
    static final String     APP_VERSION               = "_vc";

    static final long       ZONE_OUT_TIME             = 60 * 60 * 2;

    static final int        DAY_TIME                  = 7;

    static final int        NIGHT_TIME                = 20;

    static final String     SYSTEM_USER               = "syetem";
    
    static final long       ELECTRICITY_TIME_OUT             = 60 * 60 * 1;

	static final String FULL = "100";
}
